package com.itstyle.seckill.topic.desinger.design_cj.decorator;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/9/18 19:37
 * @Description: 装饰模式：目的类和装饰类具备相同的能力(统一的接口)，装饰器在对目的类做一层修饰
 */
public class Test {

    public static void main(String[] args) {
        Decorator decorator = new ConcreteDecorator(new ConcreteComponent());
        decorator.operation();
    }
}
